package action.observer;

public interface Observer {
    //核心方法，用于主题通知观察者
    void update(float humidity,float pressure);

    //用于观察者自己注册到某个主题里
    void registerToSubject(Subject subject);

    void removeFromSubject(Subject subject);
}
